.class public Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;
.super Lcom/estrongs/android/ui/base/HomeAsBackActivity;
.source "MessageBoxActivity.java"

# interfaces
.implements Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter$b;


# instance fields
.field private j:Landroidx/recyclerview/widget/RecyclerView;

.field private k:Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter;

.field private l:Landroid/view/ViewStub;

.field private m:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;-><init>()V

    return-void
.end method

.method private F()V
    .locals 3

    const v0, 0x7f0907be

    .line 1
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewStub;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->l:Landroid/view/ViewStub;

    .line 2
    invoke-virtual {v0}, Landroid/view/ViewStub;->inflate()Landroid/view/View;

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->l:Landroid/view/ViewStub;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/ViewStub;->setVisibility(I)V

    .line 4
    new-instance v0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->k:Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter;

    const v0, 0x7f0907c0

    .line 5
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/recyclerview/widget/RecyclerView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->j:Landroidx/recyclerview/widget/RecyclerView;

    .line 6
    new-instance v1, Lcom/estrongs/android/pop/app/log/WrapContentLinearLayoutManager;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/log/WrapContentLinearLayoutManager;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->j:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->k:Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter;

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->k:Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter;

    invoke-virtual {v0, p0}, Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter;->a(Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter$b;)V

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->k:Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter;

    const-string v1, "message_box_list"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/biz/cards/cardfactory/CmsCardBaseAdapter;->a(Ljava/lang/String;Z)V

    const v0, 0x7f0907c1

    .line 10
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->m:Landroid/view/View;

    const/4 v1, 0x0

    .line 11
    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method

.method public static a(Landroid/app/Activity;)V
    .locals 2

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 2
    invoke-virtual {p0, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    .line 3
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p0

    const-string v0, "hpmessage_click"

    .line 4
    invoke-virtual {p0, v0}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 5
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    return-void
.end method


# virtual methods
.method protected A()Landroidx/appcompat/app/ActionBar;
    .locals 3

    const v0, 0x7f0907c5

    .line 1
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/appcompat/widget/Toolbar;

    .line 2
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->setSupportActionBar(Landroidx/appcompat/widget/Toolbar;)V

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->v()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    const v2, 0x7f060252

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/Toolbar;->setTitleTextColor(I)V

    .line 4
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object v0

    return-object v0
.end method

.method protected C()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method protected D()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->k:Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter;

    if-eqz p1, :cond_0

    .line 3
    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f0c0267

    .line 2
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->setContentView(I)V

    .line 3
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string v0, "mbx_page_show"

    const-string v1, "show"

    invoke-virtual {p1, v0, v1}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V

    const p1, 0x7f110695

    .line 4
    invoke-virtual {p0, p1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Landroid/app/Activity;->setTitle(Ljava/lang/CharSequence;)V

    .line 5
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->F()V

    .line 6
    invoke-static {}, Lcom/estrongs/android/biz/cards/cardfactory/h;->b()Lcom/estrongs/android/biz/cards/cardfactory/h;

    move-result-object p1

    const-string v0, "message_box_list"

    invoke-virtual {p1, v0}, Lcom/estrongs/android/biz/cards/cardfactory/h;->a(Ljava/lang/String;)V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->k:Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/biz/cards/cardfactory/CmsCardBaseAdapter;->b()V

    :cond_0
    return-void
.end method

.method protected onResume()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onResume()V

    return-void
.end method

.method protected onStart()V
    .locals 2

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onStart()V

    .line 2
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroidx/appcompat/app/ActionBar;->setElevation(F)V

    return-void
.end method

.method public t()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->m:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->k:Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/messagebox/MessageBoxCmsAdapter;->getItemCount()I

    move-result v0

    if-lez v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->l:Landroid/view/ViewStub;

    invoke-virtual {v0, v1}, Landroid/view/ViewStub;->setVisibility(I)V

    goto :goto_0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/MessageBoxActivity;->l:Landroid/view/ViewStub;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/ViewStub;->setVisibility(I)V

    :goto_0
    return-void
.end method
